package cn.edu.scau.cmi.zenghanxiong.Singleton;
import java.net.URL;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.ResourceBundle;

import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
import javafx.scene.control.TextField;
public class Chairman {
	private static Chairman chairman;
	private String name;
	private int number;
	private Chairman(String name) {
		this.name=name;
		number=(int)(100000+Math.random()*(900001));
	}

	public static Chairman getInstance(String name) {

		if (chairman == null) {
			chairman=new Chairman(name);
			
			return chairman;
		} else
			return chairman;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		TextField myTextField = null;
		this.name = myTextField.getText();
	}
	public int getNum() {
		
		return number;
	}
	
}
